package com.guguskins.back.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 奖品记录表
 * </p>
 *
 * @author mybatis-plus
 * @since 2021-07-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("gu_prize_record")
public class GuPrizeRecord extends Model<GuPrizeRecord> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "pr_id", type = IdType.AUTO)
    private Integer prId;

    /**
     * 用户id
     */
    private Integer prUserId;

    /**
     * 轮盘id
     */
    private Integer prTurntableId;

    private LocalDateTime prInputTime;

    private LocalDateTime prUpdateTime;
    @TableField(exist = false)
    private GuUser guUser;
    @TableField(exist = false)
    private GuTurntable guTurntable;

    @Override
    protected Serializable pkVal() {
        return this.prId;
    }

}
